import request from '@/utils/request'

export function listModel(query) {
    return request({
        url: '/workflow/model/list',
        method: 'get',
        params: query
    })
}

export function pageModel(query) {
    return request({
        url: '/workflow/model/page',
        method: 'get',
        params: query
    })
}

export function getModel(id) {
    return request({
        url: '/workflow/model/get/' + id,
        method: 'get'
    })
}

export function saveModel(data) {
    return request({
        url: '/workflow/model/save',
        method: 'post',
        data: data
    })
}

export function delModel(id) {
    return request({
        url: '/workflow/model/remove/' + id,
        method: 'post'
    })
}
